package com.zb.hms.data.hms.user.dao.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.zb.hms.data.base.dao.inter.BaseDaoInter;
import com.zb.hms.data.hms.user.dao.inter.UserDaoInter;
import com.zb.hms.data.hms.user.entity.User;
@SuppressWarnings({"unchecked"})
@Repository
public class UserDaoImpl implements UserDaoInter {
	@Resource
	private BaseDaoInter<User> baseDao;
	@Override
	public void save(User user) {
		// TODO Auto-generated method stub
		baseDao.save(user);
	}
	@Override
	public List<User> get(String hql,Map<String,Object> params) {
		// TODO Auto-generated method stub
		return baseDao.findHql(hql, params);
	}
	
}
